using System;
using System.Data;
using PCSComUtils.PCSExc;
using PCSComProduct.Costing.DS;

namespace PCSComProduct.Costing.BO
{
	public class CostDescriptionBO //: ICostDescriptionBO
	{
		private const string THIS = "PCSComProduct.Costing.BO.CostDescriptionBO";
		public CostDescriptionBO()
		{
			//
			// TODO: Add constructor logic here
			//
		}

		public object GetObjectVO(int pintID, string VOclass)
		{
			// TODO:  Add CostCenterRateBO.GetObjectVO implementation
			return null;
		}

		//**************************************************************************              
		///    <Description>
		///       This method uses to 
		///    </Description>
		///    <Inputs>
		///            
		///    </Inputs>
		///    <Outputs>
		///       
		///    </Outputs>
		///    <Returns>
		///       
		///    </Returns>
		///    <Authors>
		///       Hoang Trung Son - iSphere software
		///    </Authors>
		///    <History>
		///       Friday, January 21, 2005
		///    </History>
		///    <Notes>
		///    </Notes>
		//**************************************************************************
		//[AutoComplete(true)]
		public void Add(object pObjectDetail)
		{
			try
			{
				ITM_CostDescriptionDS  dsCostDescription = new ITM_CostDescriptionDS();
				dsCostDescription.Add(pObjectDetail);
			}
			catch(PCSDBException ex)
			{
				throw ex;
			}			
			catch (Exception ex)
			{
				throw ex;
			}		

		}
	
		public void Delete(object pObjectVO)
		{
			// TODO:  Add CostDescriptionBO.Delete implementation

		}
		//**************************************************************************              
		///    <Description>
		///       This method uses to 
		///    </Description>
		///    <Inputs>
		///            
		///    </Inputs>
		///    <Outputs>
		///       
		///    </Outputs>
		///    <Returns>
		///       
		///    </Returns>
		///    <Authors>
		///       Hoang Trung Son - iSphere software
		///    </Authors>
		///    <History>
		///       Friday, January 21, 2005
		///    </History>
		///    <Notes>
		///    </Notes>
		//**************************************************************************
		//[AutoComplete(true)]
		public object GetObjectVO(string pstrCCNID)
		{	
			try
			{
				ITM_CostDescriptionDS  dsCostDescription = new ITM_CostDescriptionDS();
				return dsCostDescription.GetObjectVO(pstrCCNID);
				
			}
			catch(PCSDBException ex)
			{
				throw ex;
			}			
			catch (Exception ex)
			{
				throw ex;
			}

		}

		//**************************************************************************              
		///    <Description>
		///       This method uses to 
		///    </Description>
		///    <Inputs>
		///            
		///    </Inputs>
		///    <Outputs>
		///       
		///    </Outputs>
		///    <Returns>
		///       
		///    </Returns>
		///    <Authors>
		///       Hoang Trung Son - iSphere software
		///    </Authors>
		///    <History>
		///       Friday, January 21, 2005
		///    </History>
		///    <Notes>
		///    </Notes>
		//**************************************************************************
		//[AutoComplete(true)]
		public object GetObjectVO(int pintID)
		{	
			try
			{
				ITM_CostDescriptionDS  dsCostDescription = new ITM_CostDescriptionDS();
				return dsCostDescription.GetObjectVO(pintID);
				
			}
			catch(PCSDBException ex)
			{
				throw ex;
			}			
			catch (Exception ex)
			{
				throw ex;
			}

		}

		//**************************************************************************              
		///    <Description>
		///       This method uses to 
		///    </Description>
		///    <Inputs>
		///            
		///    </Inputs>
		///    <Outputs>
		///       
		///    </Outputs>
		///    <Returns>
		///       
		///    </Returns>
		///    <Authors>
		///       Hoang Trung Son - iSphere software
		///    </Authors>
		///    <History>
		///       Friday, January 21, 2005
		///    </History>
		///    <Notes>
		///    </Notes>
		//**************************************************************************
		//[AutoComplete(true)]
		public object GetDefaultCostDescription()
		{	
			try
			{
				ITM_CostDescriptionDS  dsCostDescription = new ITM_CostDescriptionDS();
				//return dsCostDescription.();
				return null;
			}
			catch(PCSDBException ex)
			{
				throw ex;
			}			
			catch (Exception ex)
			{
				throw ex;
			}

		}

		//**************************************************************************              
		///    <Description>
		///       This method uses to 
		///    </Description>
		///    <Inputs>
		///            
		///    </Inputs>
		///    <Outputs>
		///       
		///    </Outputs>
		///    <Returns>
		///       
		///    </Returns>
		///    <Authors>
		///       Hoang Trung Son - iSphere software
		///    </Authors>
		///    <History>
		///       Friday, January 21, 2005
		///    </History>
		///    <Notes>
		///    </Notes>
		//**************************************************************************
		//[AutoComplete(true)]
		public void Update(object pObjectDetail)
		{
			try
			{
				ITM_CostDescriptionDS  dsCostDescription = new ITM_CostDescriptionDS();
				dsCostDescription.Update(pObjectDetail);
			}
			catch(PCSDBException ex)
			{
				throw ex;
			}			
			catch (Exception ex)
			{
				throw ex;
			}		
		}
	
		//**************************************************************************              
		///    <Description>
		///       This method uses to 
		///    </Description>
		///    <Inputs>
		///            
		///    </Inputs>
		///    <Outputs>
		///       
		///    </Outputs>
		///    <Returns>
		///       
		///    </Returns>
		///    <Authors>
		///       Hoang Trung Son - iSphere software
		///    </Authors>
		///    <History>
		///       Friday, January 21, 2005
		///    </History>
		///    <Notes>
		///    </Notes>
		//**************************************************************************
		//[AutoComplete(true)]
		public void UpdateItemCost(object pvoItemCost)
		{
			try
			{
				ITM_CostDS dsCost = new ITM_CostDS();
				dsCost.UpdateItemCost(pvoItemCost);
			}
			catch (PCSDBException ex)
			{
				throw ex;
			}
			catch (Exception ex)
			{
				throw ex;
			}
		}

		public void UpdateDataSet(DataSet dstData)
		{
			// TODO:  Add CostDescriptionBO.UpdateDataSet implementation

		}
	}
}
